Skip to content

feat(interactive_browser): tag provider sessions with the episode - #3932

Merged
ananthsub merged 1 commit into
NVIDIA-NeMo:mainfrom
waple0820:fix/browser-tag-rollout
Oct 2, 2026
Merged

ananthsub merged 1 commit into
NVIDIA-NeMo:mainfrom
waple0820:fix/browser-tag-rollout

Conversation

@waple0820

Copy link
Copy Markdown
Contributor

What

Small follow-up to #3812. A browser seeded by an Environment Server now carries its episode (rollout_id, attempt) to the session provider, and remote_cdp logs the provider's session id together with it when the session is acquired.

Why

Provider sessions were tagged with resources_session_id only. Under an Environment Server that id is minted inside single_agent_turn and never reaches the episode result, so it can't join a leaked cloud session back to the rollout that held it. The episode id is on both sides: it comes in with the seed and goes out on the result.

The log line covers providers that ignore metadata: the join still exists in the environment's own log.

Changes

  • Typed seed adds rollout_id and attempt to the backend's session metadata. Legacy /run seeds are unchanged (no episode to tag).
  • remote_cdp logs Provider 'x' session <id> acquired for {...} on acquire, and includes the metadata in the release-failure warning.
  • README: one paragraph under Session lifetime.

Tests

Three new tests, failing before the change: typed seed passes the episode in metadata, legacy seed doesn't, and the acquire log line names both the provider session and the rollout.

cd resources_servers/interactive_browser && pytest tests -q   # 52 passed

🤖 Generated with Claude Code

A provider session was tagged with the resources_session_id only. Under
an Environment Server that id is minted inside the Environment Server
and never reaches the training record, so it could not join a leaked
cloud session back to its rollout.

- A typed seed passes the episode's rollout_id and attempt to the
  backend as session metadata, next to the existing session id.
- remote_cdp logs the provider's session id together with that
  metadata when it acquires a session, and includes the metadata when
  a release fails. A provider that ignores metadata still gets the
  join in the environment's own log.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: waple0820 <232305951+waple0820@users.noreply.github.com>
@copy-pr-bot

copy-pr-bot Bot commented Oct 2, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@nemo-automation-bot nemo-automation-bot Bot added the community-request Issue reported or requested by someone from the community label Oct 2, 2026
@yaoyu-33 yaoyu-33 added area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers complexity:low Localized change in one scope with a small, straightforward review surface feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer labels Oct 2, 2026
@ananthsub

Copy link
Copy Markdown
Contributor

/ok to test 190df88

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/37035131806

Merged via the queue into NVIDIA-NeMo:main with commit bdc018a Oct 2, 2026
49 checks passed

This branch was previously deployed

1 inactive deployment
public — 190df889 Deployed Oct 2, 2026 by copy-pr-bot[bot] via release / finalize / notify #4201
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers community-request Issue reported or requested by someone from the community complexity:low Localized change in one scope with a small, straightforward review surface feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants